#ifndef PLANE_H
#define PLANE_H

#include "includes.h"
#include "EntityMesh.h"

class Plane : public EntityMesh
{

public:
	int hitpoints;
	float timeToFire;
	double speed;
	float timeTakeOff;
	EntityMesh* helice;
	Plane(void);
	~Plane(void);

public:
	void fire();
	void update(float dt);
	void aceleration(double speed);
	void straight(Matrix44 &matrix, double speed);
	void left(Matrix44 &matrix, float seconds_elapsed);
	void right(Matrix44 &matrix, float seconds_elapsed);
	void dejected(float seconds_elapsed);
	bool takeOff(float seconds_elapsed);
};

#endif